package top.peng.project.router;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author tanpeng
 * @date 2019/4/22 10:34
 * @desc
 */
@Controller
public class RouterController {

    @GetMapping(value = "/chat")
    public String showChat() {
        System.out.println("web-socket 长连接，聊天室");
        return "chat";
    }

    @GetMapping(value = "/ajax-heart-check")
    public String showAjaxHeartCheck() {
        System.out.println("利用 ajax 做心跳检测");
        return "ajax-heart-check";
    }


}
